package org.tao.lightningmq.common.enums;

/**
 * @Author lht
 * @date 2025/1/7 - 20:05
 * @description:
 */
public enum BrokerEventCode {

    REGISTRY_CONSUMER_GROUP(1000, "初始化消费者组信息"),
    PUSH_MSG(1001, "推送消息"),
    CONSUME_MSG(1002,"消费消息"),
    CONSUME_SUCCESS_MSG(1003,"消费成功"),
    CREATE_TOPIC(1004,"创建topic"),
    START_SYNC_MSG(1005,"从节点开启同步"),
    CONSUME_LATER_MSG(1006,"消息重试"),
    BROKER_MASTER_CHANGE_MSG(1007, "Broker主节点切换"),
    ;

    final int code;
    final String desc;

    BrokerEventCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
